package xyz.fuqufyb.aec.entity;

import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 用户: fyb
 * @description class: MenuVo
 * @date 时间: 2021/2/1 14:51
 *
 * 返回给前端的角色菜单数据 数据
 */
@ToString
public class MenuVo {

    private Integer id;

    private String title;

    private Integer parentId;

    private String url;

    private String icon;

    private String perms;

    private Short type;

    private Integer sort;

    private List<MenuVo> children = new ArrayList<>();

    private static final long serialVersionUID = 1L;

    public MenuVo(Integer id, String title, Integer parentId, String url, String icon, String perms, Short type, Integer sort) {
        this.id = id;
        this.title = title;
        this.parentId = parentId;
        this.url = url;
        this.icon = icon;
        this.perms = perms;
        this.type = type;
        this.sort = sort;
    }

    public MenuVo() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms == null ? null : perms.trim();
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<MenuVo> getChildren() {
        return children;
    }

    public void setChildren(List<MenuVo> children) {
        this.children = children;
    }

}
